package com.lhy.skywalking.user;

import com.lhy.skywalking.common.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteUserService", value = "user-service")
public interface UserFeignService {

    @GetMapping("/users/{id}")
    AjaxResult findById(@PathVariable("id") Long id);
}
